package com.ying.dogying.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ying.dogying.entity.dto.ImPostDto;
import com.ying.dogying.es.dto.EsPostDto;

import java.util.List;

public interface EsService {

    /**
     * 条件查询es(分页)
     */
    IPage<EsPostDto> selectByParams(Page page, String keyword);

    /**
     * 初始化es
     */
    int initEsSearch(List<ImPostDto> records);
}
